<!--#include file="Config.asp"-->
<!--#include file="emp_is.asp"-->
<!--#include file="Header.asp"-->
<%

SQL="select * from [emp_staff] where emp_id="&Trim(session("emp_ID"))&" "
rs.open  Sql,conn,1,1
%>
<table class="table">
<TR>
<Th><b>[ID:<%=rs("emp_id")%>]操作:修改【<%=rs("emp_Name")%>】的密码</b></Th>
</TR>
<form name=ChangeUser  action='?UserAction=Mod' method=post>
<TR bgColor=#ffffff>
<TD>
原密码：
<%=rs("emp_Pass")%><BR>
新密码：
<input   name="NewPass" type="text" value="" >
<input type="submit" name="UpdateButton" value="修改">
</TD>
</TR>
</form>
</TABLE>
<%rs.close%>

<%
Action=request("UserAction")
If Action="Mod" Then
sql = "select * from [emp_staff] where emp_id= "&Trim(session("emp_ID"))&" "
rs.open sql,conn,2,2
rs("emp_Pass")=MD5(Trim(request("NewPass")))
rs.update
rs.close
set rs=nothing
response.redirect Request.ServerVariables("Http_referer")
End if
%>


<!--#include file="Footer.asp" -->